package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;
import java.util.Date;
@DatabaseTable(tableName = "StockExport")
@EntityComment("出库单")
public class StockExport implements Serializable {
    @Column("单号")
    @DatabaseField(id=true) public String  id;
    @Column("客户")
    @DatabaseField(foreign=true  )
    public Customer customer;
    @Column("出库日期")@DatabaseField
    public Date date;
    /*@Column("应付金额")@DatabaseField
    public double accPay;*/
    @Column("实收金额")@DatabaseField
    public double actRec;
    /*@Column("成本金额")@DatabaseField
    public double costPrice;*/
    /*@Column("交易状态")@DatabaseField
    public char tranState;*/
    @Column("操作用户")
    @DatabaseField(foreign=true )
    public User user;
    @Column("备注")
    @DatabaseField(canBeNull=true) public String  comment;
    @Override
    public String toString() {
        return Serializer.doSerialize(this);
    }

}
